export const handleResize = (components,num) => {
    const viewHeight = 306
    const getSize =()=>{
        if (window.innerHeight < 380 ) return
        components.setState({ height: window.innerHeight - viewHeight })
    }
    window.addEventListener('resize', getSize ,false)
    getSize()
} 